package cn.appsm.views.web.common;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

import cn.appsm.base.CommonDataWrapper;

/**
 * 基础静态页面
 * @author flatychen
 * @date 2014-4-17
 */
@Controller
@RequestMapping("/tips")
public class PageTipController {
	
	/**
	 * 404 页面
	 * @author flatychen
	 * @date 2014-4-17
	 * @return
	 */
	@RequestMapping(value="/404",method=RequestMethod.GET)
	public String notFound(){
		return "/views/base/404";
	}
	
	
	/**
	 * 重复提交页面
	 * @author flatychen
	 * @date 2014-4-17
	 * @return
	 */
	@RequestMapping(value="/repeat")
	public String repeat(Model model){
		CommonDataWrapper wrapper = new CommonDataWrapper();
		wrapper.setSuccess(false);
		wrapper.setMessage("请不要重复提交！");
		model.addAttribute(wrapper);
		return "/views/base/repeat";
	}
	
	
}
